package com.taotao.interceptor.mapper;

import com.taotao.interceptor.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: wangjin
 * @CreateTime: 2022-08-07  19:21
 */
public interface UserMapper {
    @Select("select * from mayikt_users")
    public List<UserEntity> getUser2();

    @Insert("INSERT INTO `mayikt_users` ( `name`, `age`) VALUES ( 'wangmazi', 22);")
    int insert(UserEntity userEntity);
}
